from rest_framework.serializers import ModelSerializer

from app_service.models.school_model import School, Student, Teacher


class SchoolSerializer(ModelSerializer):
    class Meta:
        model = School
        fields = ['name', 'address', ]


class StudentSerializer(ModelSerializer):
    class Meta:
        model = Student
        fields = ['name', 'sex', ]


class TeacherSerializer(ModelSerializer):
    class Meta:
        model = Teacher
        fields = ['name', ]
